<template>
	<button @click="InsertTable3">表格</button>
	<button @click="InsertInputFieldElement">文本输入域</button>
	<button @click="InsertListInputFieldElement">下拉</button>
	<button @click="InsertDateTimeInputFieldElement">时间</button>
	<button @click="MegeCell">合并单元格</button>
	<button @click="SplitCell">拆分单元格</button>
	<button @click="InsertImage">插入图片</button>
	<button @click="InsertComment">命令插入批注</button>
	<button @click="exp3">获取数据</button>
	<button @click="DownLoadXml">下载XML</button>
</template>
<script setup lang="ts">
import { onMounted } from "vue"
import { useCommomStore } from "@/pinia/store/commom.pinia"

const storeCommomStore = useCommomStore()
const props = defineProps(["myWriterControl"])
onMounted(() => {
	setTimeout(() => {
		storeCommomStore.Handle_Event(props.myWriterControl)
	}, 1000)
})

function InsertTable3() {
	storeCommomStore.InsertTable3(props.myWriterControl)
}
function InsertDateTimeInputFieldElement() {
	storeCommomStore.InsertDateTimeInputFieldElement(props.myWriterControl)
}
function InsertListInputFieldElement() {
	storeCommomStore.InsertListInputFieldElement(props.myWriterControl)
}
function InsertInputFieldElement() {
	storeCommomStore.InsertInputFieldElement(props.myWriterControl)
}
function MegeCell() {
	storeCommomStore.MegeCell(props.myWriterControl)
}
function SplitCell() {
	storeCommomStore.SplitCell(props.myWriterControl)
}
function InsertImage() {
	storeCommomStore.InsertImage(props.myWriterControl)
}
function InsertComment() {
	storeCommomStore.InsertComment(props.myWriterControl)
}
function exp3() {
	storeCommomStore.exp3(props.myWriterControl)
}
function DownLoadXml() {
	storeCommomStore.DownLoad("xml", props.myWriterControl)
}
</script>
<style scoped lang="scss"></style>
